home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 49
/
Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso
/
-serious-
/
comms
/
other
/
novia
/
bin
/
viewselect.c
< prev
next >
Wrap
C/C++ Source or Header
|
1999-12-06
|
899b
|
36 lines
#include <pragma/noviasys_lib.h>
#include <pragma/exec_lib.h>
#include <pragma/dos_lib.h>
#include <stdio.h>
#include <novia/novia_portdata.h>
struct Library *NoviaSysBase;
void ioprintf(const char *string, ...)
{
char *buffer=AllocVec(10000,MEMF_ANY|MEMF_CLEAR);
if (buffer)
{
vsprintf(buffer, string, unsigned int(&string + 1));
Writeio(buffer,-1);
FreeVec(buffer);
}
}
void main()
{
if ((NoviaSysBase = OpenLibrary("noviasys.library", 0)))
{
struct PortData *cport = (struct PortData *)FindTask(NULL)->tc_UserData;
struct SelectItem *select = (SelectItem *)cport->select_list.mlh_Head;
struct Item item;
while (select->ln_Succ)
{
// if (GetItem_byIP(select->dirIP,select->itemIP,&item,sizeof(ItemHeader)));
ioprintf("selected\n");
// ioprintf("%-40d\n",item.itemheader.Title);
select = select->ln_Succ;
}
CloseLibrary(NoviaSysBase);
}
}